Home:ALL Converter>How to set up a Dockerfile so that the container OS will be Ubuntu?

How to set up a Dockerfile so that the container OS will be Ubuntu?

Ask Time:2018-07-25T21:51:52         Author:Shaul Behr

Json Formatter

I'm just getting into Docker, so please excuse my noobiness.

I've set up a Dockerfile for a unit testing project, based on the guidelines in this article. The container runs fine, and I managed to run the tests. But I got different results in my local container than we got on our build bot. So I thought it might be because the build bot is on Ubuntu, while my local container appears to be Debian.

So, how do I set up the Dockerfile to use Ubuntu rather than Debian?

Dockerfile code:

FROM microsoft/dotnet:2.1-sdk
WORKDIR /src
COPY ./bin/Debug/netcoreapp2.1/linux-x64/publish/ .
ENTRYPOINT ["tail", "-f", "/dev/null"]

Author:Shaul Behr,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/51520649/how-to-set-up-a-dockerfile-so-that-the-container-os-will-be-ubuntu
yy